/*package com.hou.cassecurity.filter;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter;
import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.context.annotation.Configuration;

*//**
 ** @WebFilter(urlPatterns="" , filterName="casRedirectFilter") 参数说明：urlPatterns：该filter拦截的路径，filterName：拦截器的名称
 * @author houzhonglan
 * @date 2018年12月11日 上午11:15:30
 *//*
@Configuration
@WebFilter(urlPatterns="" , filterName="casRedirectFilter")
public class HttpParamsFilter implements Filter {
	public static String REQUESTED_URL = "CasRequestedUrl";
	@Override
	public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain chain)
			throws IOException, ServletException {
		// TODO 自动生成的方法存根
		final HttpServletRequest request = (HttpServletRequest) servletRequest;
		final HttpServletResponse response = (HttpServletResponse) servletResponse;
		HttpSession session = request.getSession();
		String realPath = request.getRequestURL().toString();
		String requestPath = request.getRequestURI();
		String param = request.getQueryString();

		requestPath+="?"+param;
		System.out.println(requestPath+"----"+param);

		session.setAttribute(REQUESTED_URL, requestPath);
		request.getRequestDispatcher(requestPath+"?"+realPath.substring(realPath.lastIndexOf("&")+1,realPath.length())).forward(request,response);
		chain.doFilter(request, response);

	}

}*/
